﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace eduscrum.Models
{
    public class Sprint
    {
        public int SprintID { get; set; }
        /*public int Number { get; set; }*/
        [DataType(DataType.Date)]
        public DateTime StartDate { get; set; }
        [DataType(DataType.Date)]
        public DateTime EndDate { get; set; }

        //Foreign key
        [Required]
        public virtual List<UserStory> SprintBacklog { get; set; }

        //Foreign key with constraint and ONDELETE CASCADE
        [Required]
        public virtual Project Project { get; set; }
    }
}